#!/usr/bin/env python
import os

def main():
    package_dir = os.path.join(os.path.dirname(__file__), 'RequirePackages')
    install_order = ["Jinja2-2.6.tar.gz", "Werkzeug-0.8.3.tar.gz", "Flask-0.9.tar.gz", "xlrd-0.8.0.tar.gz",
                     "SQLAlchemy-0.7.9.tar.gz", "lxml-3.0.tar.gz"]

    os.system('curl http://python-distribute.org/distribute_setup.py | python')

    for i in install_order:
        package = os.path.join(package_dir,i)
        os.system('/Volumes/Backup/PythonVenv/tvvv/bin/pip install %s' % package)

if __name__ == "__main__":
    print "Not finish yet"
    #main()